<?php


namespace app\server\model;


use app\index\model\Base;

class Organization extends Base
{
    protected $pk = 'o_id';
    public function getlogoAttr($img)
    {
        $host_public=config('host_public');
        return $host_public.$img;
    }
    public function oImg()
    {
        return $this->hasMany('OImg','o_id','o_id');
    }
}